import 'package:flutter/material.dart';

import 'package:palyer/app/core/values/colors.dart';

final ThemeData appThemeData = ThemeData(
  // 自定义字体, 看设计需求
  fontFamily: 'kai',
  // 启用 Material3
  useMaterial3: true,
  /// 主题色
  primaryColor: AppColors.meaning_color_success,
  colorScheme: const ColorScheme.light(primary: AppColors.primary_color2),
  /// 按钮全局自定义
  // buttonTheme: const ButtonThemeData(
  //   splashColor: AppColors.primary_color2,
  //   highlightColor: Colors.white,
  //   buttonColor: AppColors.primary_color,
  //   textTheme: ButtonTextTheme.primary,
  // ),
  // textButtonTheme: TextButtonThemeData(
  //   style: TextButton.styleFrom(
  //     padding: EdgeInsets.zero,
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     primary: AppColors.primary_color,
  //   ),
  // ),
  // elevatedButtonTheme: ElevatedButtonThemeData(
  //   style: ElevatedButton.styleFrom(
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     primary: AppColors.primary_color,
  //     shape: const StadiumBorder(),
  //   ),
  // ),
  // outlinedButtonTheme: OutlinedButtonThemeData(
  //   style: OutlinedButton.styleFrom(
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     shape: const StadiumBorder(),
  //   ),
  // ),
  // inputDecorationTheme: InputDecorationTheme(
  //   // isDense: true,
  //   contentPadding: EdgeInsets.zero,
  //   hintStyle: AppTextStyles.body1_14_Regular_primary
  //       .copyWith(color: AppColors.font_color_secondary),
  //   border: InputBorder.none,
  // ),
);

final ThemeData appThemeDataDark = ThemeData(
  // 自定义字体, 看设计需求
  fontFamily: 'kai',
  // 启用 Material3
  useMaterial3: true,
  /// 主题色
  colorScheme: const ColorScheme.dark(primary: AppColors.primary_color2),
  /// 按钮全局自定义
  // buttonTheme: const ButtonThemeData(
  //   splashColor: AppColors.primary_color2,
  //   highlightColor: Colors.white,
  //   buttonColor: AppColors.primary_color,
  //   textTheme: ButtonTextTheme.primary,
  // ),
  // textButtonTheme: TextButtonThemeData(
  //   style: TextButton.styleFrom(
  //     padding: EdgeInsets.zero,
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     primary: AppColors.primary_color,
  //   ),
  // ),
  // elevatedButtonTheme: ElevatedButtonThemeData(
  //   style: ElevatedButton.styleFrom(
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     primary: AppColors.primary_color,
  //     shape: const StadiumBorder(),
  //   ),
  // ),
  // outlinedButtonTheme: OutlinedButtonThemeData(
  //   style: OutlinedButton.styleFrom(
  //     tapTargetSize: MaterialTapTargetSize.shrinkWrap,
  //     minimumSize: Size.zero,
  //     shape: const StadiumBorder(),
  //   ),
  // ),
  // inputDecorationTheme: InputDecorationTheme(
  //   // isDense: true,
  //   contentPadding: EdgeInsets.zero,
  //   hintStyle: AppTextStyles.body1_14_Regular_primary
  //       .copyWith(color: AppColors.font_color_secondary),
  //   border: InputBorder.none,
  // ),
);